﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ArticleWeb.Models
{
    public class Article
    {
        public int ID { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 片段数
        /// </summary>
        public int Fragments { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public int CatagoryID { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 用于采编锁定，自己可重入
        /// </summary>
        public Guid? EditingBy { get; set; }

        /// <summary>
        /// 采编状态
        /// </summary>
        public ArticleState State { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? SimHash { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        public string SourceUrl { get; set; }

        /// <summary>
        /// 下载并上传到七牛的图
        /// </summary>
        public string Images { get; set; }
    }

    public enum ArticleState
    {
        待采编,
        已采编
    }
}